#FROM registry.cn-beijing.aliyuncs.com/wangxiaochun/node:14.17.6 AS build
FROM registry.cn-beijing.aliyuncs.com/wangxiaochun/node:16.20-bullseye-slim AS build
COPY . /vue
WORKDIR /vue
RUN npm install  --registry=https://registry.npmmirror.com && npm run build:prod

FROM registry.cn-beijing.aliyuncs.com/wangxiaochun/nginx:1.20.0
LABEL maintainer="wangxiaochun <root@wangxiaochun.com>"
COPY --from=build /vue/dist /usr/share/nginx/html
